package com.mgface.mrmdb.msgpack;

import org.msgpack.MessagePack;

public class Main1 {
	public static void main(String[] args) throws Exception {
		MyMessage src = new MyMessage();
        src.name = "msgpack";
        src.version = 0.6;
        MessagePack msgpack = new MessagePack();
        // Serialize
        byte[] bytes = msgpack.write(src);
        // Deserialize
        MyMessage dst = msgpack.read(bytes, MyMessage.class);
        System.out.println(dst);
	}

}
